﻿using System.ComponentModel;

namespace RN.User.Application.Contract.Dto
{
    public class WeixinAuthorResponseDto
    {
        public string OpenId { get; set; }
        public string SessionKey { get; set; }
        public string UnionId { get; set; }
        public WeixinAuthorErrCodeEnum ErrCode { get; set; }
        public string ErrMsg { get; set; }
    }

    public enum WeixinAuthorErrCodeEnum
    {
        [Description("系统繁忙")]
        Busy = -1,
        [Description("请求成功")]
        Success = 0,
        [Description("code无效")]
        UnVaild = 40029,
        [Description("频率限制")]
        FrequencyLimit = 45011,
        [Description("高风险等级用户")]
        HighRisk = 40226
    }
}
